using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    
        public class OutStandingConfiguration : Base.BaseEntityConfiguration<OutStanding>
    {

        public override void Configure(EntityTypeBuilder<OutStanding> builder)
        {
            base.Configure(builder);

            builder.ToTable("out_standing");

            builder.Property(x=>x.Title).HasColumnName("title").HasColumnOrder(1);
            builder.Property(x=>x.Text).HasColumnName("text").HasColumnOrder(2);
            builder.Property(x=>x.studentName).HasColumnName("student_name").HasColumnOrder(3);
            
        }

    }
    
}